<%-- 
    Document   : negociar
    Created on : 27/06/2011, 16:06:22
    Author     : pauloferreira
--%>

<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%@page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<f:loadBundle basename="Adkiraki.mensagens" var="msg"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Negociação de Produto/Serviço</title>
    <link href="${pageContext.request.contextPath}/Pages/CSS/Adkiraki.css" type="text/css" rel="STYLESHEET"></link>    
</head>
<body>
<f:view>
<h:form id="compra">        
    <table>
	<!-- Cabeçalho -->
        <tr>
            <td colspan="4" class="header">
            </td>
        </tr>
        <!-- Menu -->
        <tr>
            <td class="menu">
                <h:outputLink value="/Pages/View/login.jsf"><h:outputText value="Sair" styleClass="submenu"/></h:outputLink>                                
            </td>            
            <td class="menu">                
            </td>
            <td class="menu">
            </td>
            <td class="menu">
            </td>
        </tr>
    </table>        
    <fieldset>
        <legend>Dados para Negociação</legend>                   
        <h:outputText value="Forma de Pagamento:" styleClass="label"/><br>                    
        <h:selectOneMenu id="categoria" value="#{negocioBean.formaPagamentoId}" required="true" requiredMessage="Preencher o campo Forma de Pagamento." styleClass="edit">  
            <f:selectItem itemValue="0" itemLabel="Selecione..."/>
            <f:selectItem itemValue="1" itemLabel="Depósito"/>
            <f:selectItem itemValue="2" itemLabel="Cartão"/>
            <f:selectItem itemValue="3" itemLabel="Em mão"/>
        </h:selectOneMenu>
        <br>
        <h:outputText value="Forma de Envio:" styleClass="label"/><br>                    
        <h:selectOneMenu id="categoria" value="#{negocioBean.formaEnvioId}" required="true" requiredMessage="Preencher o campo Forma de Envio." styleClass="edit">  
            <f:selectItem itemValue="0" itemLabel="Selecione..."/>
            <f:selectItem itemValue="1" itemLabel="Sedex"/>
            <f:selectItem itemValue="2" itemLabel="Pax"/>
            <f:selectItem itemValue="3" itemLabel="Em mão"/>
        </h:selectOneMenu>
        <br>        
        <h:outputText value="Valor(R$):" styleClass="label"/><br>
        <h:inputText id="valor" value="#{negocioBean.valorNegociado}" required="true" requiredMessage="Preencher o campo Valor." styleClass="edit" size="10"/><br>
        <br>            
        <br>
        <hr>
        <h:commandButton id="salvar" value="#{msg.btn_salvar}" type="submit" styleClass="button" style="width:10%" action="#{registroBean.RegistrarLogin}"/>
        <h:commandButton id="limpar" value="#{msg.btn_limpar}" type="reset" styleClass="button" style="width:10%"/>
    </fieldset>
    <br>
    <p>
        <h:messages styleClass="messages_erro"/>
    </p>                         
</h:form>
</f:view>
</body>
</html>